package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.YkrkBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface YkrkService extends BaseService<YkrkBean> {

	YkrkBean getYkrkBeanById(String id) throws Exception;
	
	void removeYkrkBeanById(String id) throws Exception;
	
	void removeYkrkBeanByIds(String ids) throws Exception;
	
	YkrkBean saveYkrkBean(YkrkBean crm) throws Exception;
	
	YkrkBean updateYkrkBean(YkrkBean crm) throws Exception;
	
	Page<YkrkBean>  findYkrkBeanByCond(YkrkBean bean,
			Page<YkrkBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveYkrkBeanExt(String sql) throws Exception;

	String findYkrkBeanExtCreate(String tableName) throws Exception;

	String findYkrkBeanExtEdit(String tableName, String id)
			throws Exception;

	String findYkrkBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasYkrkBeanExtData(String tableName, String id)
			throws Exception;
}